package com.ruoyi.basic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工程信息对象 tb_holiday
 * 
 * @author ruoyi
 * @date 2022-10-21
 */
public class TbHoliday extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 是否节假日（0：否 1：是） */
    @Excel(name = "是否节假日", readConverterExp = "0=：否,1=：是")
    private Integer holiday;

    /** 节假日日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "节假日日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 是否节补班（0：否 1：是） */
    @Excel(name = "是否节补班", readConverterExp = "0=：否,1=：是")
    private Integer after;

    /** 标签 */
    @Excel(name = "标签")
    private String target;

    /** 是否节假日（0：否 1：是） */
    @Excel(name = "是否节假日", readConverterExp = "0=：否,1=：是")
    private Integer wage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setHoliday(Integer holiday) 
    {
        this.holiday = holiday;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getHoliday() {
        return holiday;
    }

    public void setAfter(Integer after)
    {
        this.after = after;
    }

    public Integer getAfter() 
    {
        return after;
    }
    public void setTarget(String target) 
    {
        this.target = target;
    }

    public String getTarget() 
    {
        return target;
    }
    public void setWage(Integer wage) 
    {
        this.wage = wage;
    }

    public Integer getWage() 
    {
        return wage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())

            .append("after", getAfter())
            .append("target", getTarget())
            .append("wage", getWage())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
